package java69.work720;

public class Faculty extends Employee {
    protected String degree ="学位";//学位
    protected String level ="大一";//级别

    public Faculty() {
    }

    public Faculty(String name, String address, String telohone, String email, String office, double wage, String hiredate, String degree, String level) {
        super(name, address, telohone, email, office, wage, hiredate);
        this.degree = degree;
        this.level = level;
    }

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public void  show(){
        System.out.println(this.getName()+this.getAddress()+this.getEmail()+this.getTelohone()+this.getHiredate()+this.getOffice()+this.getWage()
        +this.getDegree()+this.getLevel());
    }
    public static void main(String[] args) {
        Person person = new Person();
        person.show();
        Employee employee = new Employee();
        employee.show();
        Faculty faculty =new Faculty();
        faculty.show();

    }
}
